using System;

namespace Atomic.Libraries.Plotting.Functions
{
	[Serializable]
	public class StepFunctionStep
	{
		public StepFunctionStep(double x1, double x2, double y)
		{
			if (x1 >= x2)
			{
				throw new ArgumentException();
			}

			X1 = x1;
			X2 = x2;
			Y = y;
		}

		public double X1
		{
			get;
			private set;
		}

		public double X2
		{
			get;
			private set;
		}

		public double Y
		{
			get;
			private set;
		}
	}
}
